{% extends "base.html" %}

{% block content %}

  	{% if form.errors %}
    <p class="error">Sorry, that's not a valid username or password</p>
	{% endif %}
	
	{% if user.username %}
    <p class="warning">{{ user.username }}, ya estas identificado.</p>
    {% else %}
    <form action="" method="post">
        <table>
            {{ form.as_table }}
        </table>
        <input type="submit" value="Submit">
    </form>
	{% endif %}
  
{% endblock %}